package spring6_learn.service;

public class userServiceProxy implements userService{
    private userService userService;
    public  userServiceProxy(userService userService){
        this.userService = userService;
    }
    @Override
    public void inint() {
        long satrt = System.currentTimeMillis();
        userService.inint();
        long end = System.currentTimeMillis();
        System.out.println("方法执行时间：" + (end - satrt));
    }

    @Override
    public void save() {
        long satrt = System.currentTimeMillis();
        userService.save();
        long end = System.currentTimeMillis();
        System.out.println("方法执行时间：" + (end - satrt));
    }

    @Override
    public void destroy() {
        long satrt = System.currentTimeMillis();
        userService.destroy();
        long end = System.currentTimeMillis();
        System.out.println("方法执行时间：" + (end - satrt));
    }
}
